package com.lsfb.light.Mine.MyInfo;

import android.view.View;
import android.widget.TextView;

import com.lsfb.light.R;
import com.lsfb.light.Utils.TitleUtils;
import com.zgscwjm.lsfbbasetemplate.LsfbActivity;
import com.zgscwjm.lsfbbasetemplate.annotation.ContentView;
import com.zgscwjm.lsfbbasetemplate.utils.DensityUtils;
import com.zgscwjm.lsfbbasetemplate.utils.T;
import com.zgscwjm.lsfbbasetemplate.view.titlebar.LsfbTitleBar;

@ContentView(R.layout.aty_my_info)
public class MyInfoActivity extends LsfbActivity {

    @Override
    public void initView() {
        LsfbTitleBar titleBar = TitleUtils.setsimpletitlebar(this, "个人资料", true);
        TextView textView = TitleUtils.rightbtn(this, "保存");

        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                save();
            }
        });
        titleBar.setRightView(textView, 0, 0, DensityUtils.dp2px(this, 10), 0);

    }

    /**
     * 保存个人资料
     */
    private void save() {
        T.showShort(this, "保存成功");
//        finish();
    }

    @Override
    public void initEvent() {

    }

    @Override
    public void initData() {

    }
}
